Hide axis

Hide axis

1
par(xaxt='n')

or

1
plot(...,xaxt='n')

Show the axis

1
par(xaxt='s')

Print the x axis

1
axis(1, at=at, labels=labels)

Example:

1
2
3
4
5
par(xaxt='n')
plot(1:10)
x = c(1,3,7,10)
par(xaxt='s')
axis(1, at=x, labels=x)
Homepage
Comments

Hide Comments